<?php /* Smarty version 2.6.14, created on 2012-11-01 21:14:04
         compiled from album_ajax_carousel.tpl */
?><?php
SELanguage::load();
?><?php header("Content-type:text/html; charset=shift_jis");   
 unset($this->_sections['thumb_loop']);
$this->_sections['thumb_loop']['name'] = 'thumb_loop';
$this->_sections['thumb_loop']['loop'] = is_array($_loop=$this->_tpl_vars['media']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['thumb_loop']['show'] = true;
$this->_sections['thumb_loop']['max'] = $this->_sections['thumb_loop']['loop'];
$this->_sections['thumb_loop']['step'] = 1;
$this->_sections['thumb_loop']['start'] = $this->_sections['thumb_loop']['step'] > 0 ? 0 : $this->_sections['thumb_loop']['loop']-1;
if ($this->_sections['thumb_loop']['show']) {
    $this->_sections['thumb_loop']['total'] = $this->_sections['thumb_loop']['loop'];
    if ($this->_sections['thumb_loop']['total'] == 0)
        $this->_sections['thumb_loop']['show'] = false;
} else
    $this->_sections['thumb_loop']['total'] = 0;
if ($this->_sections['thumb_loop']['show']):

            for ($this->_sections['thumb_loop']['index'] = $this->_sections['thumb_loop']['start'], $this->_sections['thumb_loop']['iteration'] = 1;
                 $this->_sections['thumb_loop']['iteration'] <= $this->_sections['thumb_loop']['total'];
                 $this->_sections['thumb_loop']['index'] += $this->_sections['thumb_loop']['step'], $this->_sections['thumb_loop']['iteration']++):
$this->_sections['thumb_loop']['rownum'] = $this->_sections['thumb_loop']['iteration'];
$this->_sections['thumb_loop']['index_prev'] = $this->_sections['thumb_loop']['index'] - $this->_sections['thumb_loop']['step'];
$this->_sections['thumb_loop']['index_next'] = $this->_sections['thumb_loop']['index'] + $this->_sections['thumb_loop']['step'];
$this->_sections['thumb_loop']['first']      = ($this->_sections['thumb_loop']['iteration'] == 1);
$this->_sections['thumb_loop']['last']       = ($this->_sections['thumb_loop']['iteration'] == $this->_sections['thumb_loop']['total']);
?> 
<div style="border: 1px solid #bbbbbb; padding: 2px; margin-right: 4px; float: left;">
<a href="javascript:nextpic(<?php echo $this->_tpl_vars['album_id']; ?>
,<?php echo $this->_tpl_vars['media'][$this->_sections['thumb_loop']['index']]['media_id']; ?>
,'<?php echo $this->_tpl_vars['owner_id']; ?>
','<?php echo $this->_tpl_vars['profile']; ?>
');"><img src='<?php echo $this->_tpl_vars['media'][$this->_sections['thumb_loop']['index']]['file_thumb']; ?>
' width='70' height='70' border='0' /></a>
</div>
<?php endfor; endif; ?>       